package com.axonactive.yolo.dtotemp;

public class FlightClass {
	private String fareClass;
	private String name;

	public String getFareClass() {
		return fareClass;
	}

	public String getName() {
		return name;
	}

	// 1 is Economy, 2 is Business and 3 is First
	public void setFareClass(int fareClass) {
		switch (fareClass) {
		case 1:
			this.fareClass = "Economy";
			break;
		case 2:
			this.fareClass = "Business";
			break;
		case 3:
			this.fareClass = "First";
			break;
		default:
			break;
		}
	}

	public void setName(String name) {
		this.name = name;
	}
}
